using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using WatiNCF.MsTest.Runner;

namespace WatiNCF.MsTest.Runner
{
    class NotifyApplicationContext : ApplicationContext
    {
        private NotifyIcon _notifyIcon = null;
        internal NotifyApplicationContext(MainForm form)
        {
            _notifyIcon = form.NotifyIcon;
            _notifyIcon.Visible = true;
        }

        protected override void ExitThreadCore()
        {
            _notifyIcon.Visible = false;
            base.ExitThreadCore();
        }
    }
}